package ooday01;

public class Car {
    String brand;
    String color;
    double price;

    Car(){}
    Car(String brand,String color,double price){
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    void start(){
        System.out.println(brand+"牌子，"+color+"颜色，"+price+"块钱的车跑起来了...");
    }
    void run(){
        System.out.println(brand+"牌子，"+color+"颜色，"+price+"块钱的车开起来了...20码...60码...120码...");
    }
    void stop(){
        System.out.println(brand+"牌子，"+color+"颜色，"+price+"块钱的车停了...");
    }
    void stop1(String b,String l){
        System.out.println(b+"和"+l+"一起停了...");
    }
}
